package cn.jingzhuan.fm.mvp.presenter

import cn.jingzhuan.fm.di.injection.DaggerApplicationComponent
import cn.jingzhuan.fm.mvp.contract.FMIndexContract
import cn.jingzhuan.fm.mvp.model.FMIndexModel
import org.junit.Test
import org.mockito.Mockito


class FMIndexPresenterTest {

    @Test
    fun getTodayListenListTest() {
        var applicationComponent =  DaggerApplicationComponent.builder().build()
        var apiService = applicationComponent.fmApiService()


        var view = Mockito.mock(FMIndexContract.View::class.java)
        var model = FMIndexModel(apiService)
        var fmIndexPresenter = FMIndexPresenter(view,model)
        fmIndexPresenter.getTodayListenList()

    }
}